package com.xuetang9.t9.hotel.beans;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品消费明细
 * @author pang
 */
public class CommodityExpense implements Serializable {

    /**
     *账单明细编号
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long billId;

    /**
     *商品编号
     */
    private Integer arriveId;

    /**
     *商品数量
     */
    private Integer attribute;

    /**
     *消费时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date consumption;

    public Long getBillId() {
        return billId;
    }

    public void setBillId(Long billId) {
        this.billId = billId;
    }

    public Integer getArriveId() {
        return arriveId;
    }

    public void setArriveId(Integer arriveId) {
        this.arriveId = arriveId;
    }

    public Integer getAttribute() {
        return attribute;
    }

    public void setAttribute(Integer attribute) {
        this.attribute = attribute;
    }

    public Date getConsumption() {
        return consumption;
    }

    public void setConsumption(Date consumption) {
        this.consumption = consumption;
    }

    @Override
    public String toString() {
        return "CommodityExpense{" +
                "billId=" + billId +
                ", arriveId=" + arriveId +
                ", attribute=" + attribute +
                ", consumption=" + consumption +
                '}';
    }
}
